home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / U-Z / VideoToolBox.cpt / VideoToolboxSources / SetFileInfo.c < prev    next >
MacBinary  |  1993-02-22  |  1.9 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Feb 22 23:56:04 1993, modified Mon Feb 22 23:56:04 1993, creator Think C, type ASCII, 1403 bytes "SetFileInfo.c" , at 0x5fb 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 53 65 74 46 69 6c | 65 49 6e 66 6f 2e 63 00 |..SetFil|eInfo.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 05 7b 00 | 00 01 7e a7 af 5e e4 a7 |......{.|..~..^..|
|00000060| af 5e e4 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.^......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d8 4a 00 00 |........|.....J..|
|00000080| 2f 2a 0d 53 65 74 46 69 | 6c 65 49 6e 66 6f 2e 63 |/*.SetFi|leInfo.c|
|00000090| 0d 0d 55 53 41 47 45 0d | 0d 09 53 65 74 46 69 6c |..USAGE.|..SetFil|
|000000a0| 65 49 6e 66 6f 28 22 4f | 75 74 70 75 74 20 46 69 |eInfo("O|utput Fi|
|000000b0| 6c 65 22 2c 27 78 78 78 | 78 27 2c 27 79 79 79 79 |le",'xxx|x','yyyy|
|000000c0| 27 29 3b 0d 0d 41 52 47 | 55 4d 45 4e 54 53 0d 0d |');..ARG|UMENTS..|
|000000d0| 09 63 68 61 72 09 2a 66 | 69 6c 65 4e 61 6d 65 3b |.char.*f|ileName;|
|000000e0| 09 09 54 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |..The na|me of th|
|000000f0| 65 20 66 69 6c 65 20 28 | 69 6e 63 6c 75 64 69 6e |e file (|includin|
|00000100| 67 20 48 46 53 0d 09 09 | 09 09 09 09 09 64 69 72 |g HFS...|.....dir|
|00000110| 65 63 74 6f 72 79 20 6e | 61 6d 65 29 20 74 6f 20 |ectory n|ame) to |
|00000120| 62 65 20 73 65 74 2e 0d | 09 0d 09 4f 53 74 79 70 |be set..|...OStyp|
|00000130| 65 09 27 78 78 78 78 27 | 09 09 09 54 68 65 20 66 |e.'xxxx'|...The f|
|00000140| 6f 75 72 20 63 68 61 72 | 61 63 74 65 72 20 66 69 |our char|acter fi|
|00000150| 6c 65 20 74 79 70 65 2c | 20 75 73 75 61 6c 6c 79 |le type,| usually|
|00000160| 20 27 54 45 58 54 27 0d | 0d 09 4f 53 74 79 70 65 | 'TEXT'.|..OStype|
|00000170| 09 27 78 78 78 78 27 09 | 09 09 54 68 65 20 66 6f |.'xxxx'.|..The fo|
|00000180| 75 72 20 63 68 61 72 61 | 63 74 65 72 20 63 72 65 |ur chara|cter cre|
|00000190| 61 74 6f 72 2c 20 65 67 | 20 27 58 43 45 4c 27 2c |ator, eg| 'XCEL',|
|000001a0| 27 43 47 52 46 27 2c 27 | 51 4b 50 54 27 2c 27 51 |'CGRF','|QKPT','Q|
|000001b0| 45 44 31 27 0d 0d 43 4f | 4d 4d 45 4e 54 53 0d 0d |ED1'..CO|MMENTS..|
|000001c0| 09 54 68 65 20 73 79 6e | 74 61 78 20 27 78 78 78 |.The syn|tax 'xxx|
|000001d0| 78 27 20 72 65 73 75 6c | 74 73 20 69 6e 20 66 6f |x' resul|ts in fo|
|000001e0| 75 72 20 63 68 61 72 61 | 63 74 65 72 73 20 70 61 |ur chara|cters pa|
|000001f0| 63 6b 65 64 20 69 6e 74 | 6f 20 61 20 73 68 6f 72 |cked int|o a shor|
|00000200| 74 20 69 6e 74 2e 20 54 | 68 69 73 20 69 73 0d 09 |t int. T|his is..|
|00000210| 61 20 4d 61 63 69 6e 74 | 6f 73 68 20 63 6f 6e 76 |a Macint|osh conv|
|00000220| 65 6e 74 69 6f 6e 2c 20 | 6e 6f 74 20 41 4e 53 49 |ention, |not ANSI|
|00000230| 20 43 2e 20 54 68 61 74 | 27 73 20 6f 6b 20 73 69 | C. That|'s ok si|
|00000240| 6e 63 65 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |nce this| routine|
|00000250| 20 69 73 20 73 74 72 69 | 63 74 6c 79 0d 09 4d 61 | is stri|ctly..Ma|
|00000260| 63 69 6e 74 6f 73 68 20 | 61 6e 79 77 61 79 2e 0d |cintosh |anyway..|
|00000270| 0d 45 58 41 4d 50 4c 45 | 0d 0d 09 2a 2a 20 63 72 |.EXAMPLE|...** cr|
|00000280| 65 61 74 65 20 43 72 69 | 63 6b 65 74 20 64 61 74 |eate Cri|cket dat|
|00000290| 61 20 66 69 6c 65 20 2a | 2a 0d 09 6d 79 46 69 6c |a file *|*..myFil|
|000002a0| 65 3d 66 6f 70 65 6e 28 | 22 4c 75 6d 69 6e 61 6e |e=fopen(|"Luminan|
|000002b0| 63 65 43 61 6c 69 62 72 | 61 74 69 6f 6e 2e 64 61 |ceCalibr|ation.da|
|000002c0| 74 61 22 2c 22 77 22 29 | 3b 0d 09 53 65 74 46 69 |ta","w")|;..SetFi|
|000002d0| 6c 65 49 6e 66 6f 28 22 | 4c 75 6d 69 6e 61 6e 63 |leInfo("|Luminanc|
|000002e0| 65 43 61 6c 69 62 72 61 | 74 69 6f 6e 2e 64 61 74 |eCalibra|tion.dat|
|000002f0| 61 22 2c 27 54 45 58 54 | 27 2c 27 43 47 52 46 27 |a",'TEXT|','CGRF'|
|00000300| 29 3b 0d 09 66 70 72 69 | 6e 74 66 28 6d 79 46 69 |);..fpri|ntf(myFi|
|00000310| 6c 65 2c 22 2a 5c 6e 22 | 29 3b 0d 09 66 70 72 69 |le,"*\n"|);..fpri|
|00000320| 6e 74 66 28 6d 79 46 69 | 6c 65 2c 22 78 5c 74 79 |ntf(myFi|le,"x\ty|
|00000330| 5c 6e 22 29 3b 0d 09 66 | 6f 72 28 69 3d 30 3b 69 |\n");..f|or(i=0;i|
|00000340| 3c 6e 3b 69 2b 2b 29 66 | 70 72 69 6e 74 66 28 6d |<n;i++)f|printf(m|
|00000350| 79 46 69 6c 65 2c 22 25 | 39 67 5c 74 25 39 67 5c |yFile,"%|9g\t%9g\|
|00000360| 6e 22 2c 78 5b 69 5d 2c | 79 5b 69 5d 29 3b 0d 09 |n",x[i],|y[i]);..|
|00000370| 66 63 6c 6f 73 65 28 6d | 79 46 69 6c 65 29 3b 0d |fclose(m|yFile);.|
|00000380| 0d 09 0d 48 49 53 54 4f | 52 59 0d 31 32 2f 38 37 |...HISTO|RY.12/87|
|00000390| 09 45 4a 43 20 77 72 6f | 74 65 20 71 5f 6d 61 6b |.EJC wro|te q_mak|
|000003a0| 65 5f 63 72 69 63 6b 28 | 29 0d 38 2f 38 39 09 64 |e_crick(|).8/89.d|
|000003b0| 67 70 20 52 65 6e 61 6d | 65 64 20 61 6e 64 20 72 |gp Renam|ed and r|
|000003c0| 65 77 72 69 74 74 65 6e | 2e 0d 38 2f 32 34 2f 39 |ewritten|..8/24/9|
|000003d0| 31 09 64 67 70 09 4d 61 | 64 65 20 63 6f 6d 70 61 |1.dgp.Ma|de compa|
|000003e0| 74 69 62 6c 65 20 77 69 | 74 68 20 54 48 49 4e 4b |tible wi|th THINK|
|000003f0| 20 43 20 35 2e 30 2e 0d | 31 32 2f 32 38 2f 39 32 | C 5.0..|12/28/92|
|00000400| 20 64 67 70 20 52 65 6d | 6f 76 65 64 20 6f 62 73 | dgp Rem|oved obs|
|00000410| 6f 6c 65 74 65 20 73 75 | 70 70 6f 72 74 20 66 6f |olete su|pport fo|
|00000420| 72 20 54 48 49 4e 4b 20 | 43 20 34 2e 0d 0d 2a 2a |r THINK |C 4...**|
|00000430| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000440| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000450| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000460| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000470| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0d 23 69 6e |********|***/.#in|
|00000480| 63 6c 75 64 65 20 22 56 | 69 64 65 6f 54 6f 6f 6c |clude "V|ideoTool|
|00000490| 62 6f 78 2e 68 22 09 2f | 2a 20 66 6f 72 20 70 72 |box.h"./|* for pr|
|000004a0| 6f 74 6f 74 79 70 65 20 | 6f 66 20 69 74 73 65 6c |ototype |of itsel|
|000004b0| 66 20 2a 2f 0d 23 69 6e | 63 6c 75 64 65 20 3c 46 |f */.#in|clude <F|
|000004c0| 69 6c 65 73 2e 68 3e 0d | 0d 76 6f 69 64 20 53 65 |iles.h>.|.void Se|
|000004d0| 74 46 69 6c 65 49 6e 66 | 6f 28 63 68 61 72 20 2a |tFileInf|o(char *|
|000004e0| 66 69 6c 65 4e 61 6d 65 | 2c 4f 53 54 79 70 65 20 |fileName|,OSType |
|000004f0| 66 69 6c 65 54 79 70 65 | 2c 4f 53 54 79 70 65 20 |fileType|,OSType |
|00000500| 66 69 6c 65 43 72 65 61 | 74 6f 72 29 0d 7b 0d 09 |fileCrea|tor).{..|
|00000510| 46 49 6e 66 6f 20 6f 75 | 74 46 69 6c 65 49 6e 66 |FInfo ou|tFileInf|
|00000520| 6f 3b 0d 09 0d 09 43 74 | 6f 50 73 74 72 28 66 69 |o;....Ct|oPstr(fi|
|00000530| 6c 65 4e 61 6d 65 29 3b | 0d 09 47 65 74 46 49 6e |leName);|..GetFIn|
|00000540| 66 6f 28 28 53 74 72 69 | 6e 67 50 74 72 29 66 69 |fo((Stri|ngPtr)fi|
|00000550| 6c 65 4e 61 6d 65 2c 30 | 2c 26 6f 75 74 46 69 6c |leName,0|,&outFil|
|00000560| 65 49 6e 66 6f 29 3b 0d | 09 6f 75 74 46 69 6c 65 |eInfo);.|.outFile|
|00000570| 49 6e 66 6f 2e 66 64 54 | 79 70 65 20 3d 20 66 69 |Info.fdT|ype = fi|
|00000580| 6c 65 54 79 70 65 3b 0d | 09 6f 75 74 46 69 6c 65 |leType;.|.outFile|
|00000590| 49 6e 66 6f 2e 66 64 43 | 72 65 61 74 6f 72 20 3d |Info.fdC|reator =|
|000005a0| 20 66 69 6c 65 43 72 65 | 61 74 6f 72 3b 0d 09 53 | fileCre|ator;..S|
|000005b0| 65 74 46 49 6e 66 6f 28 | 28 53 74 72 69 6e 67 50 |etFInfo(|(StringP|
|000005c0| 74 72 29 66 69 6c 65 4e | 61 6d 65 2c 30 2c 26 6f |tr)fileN|ame,0,&o|
|000005d0| 75 74 46 69 6c 65 49 6e | 66 6f 29 3b 0d 09 50 74 |utFileIn|fo);..Pt|
|000005e0| 6f 43 73 74 72 28 28 76 | 6f 69 64 20 2a 29 66 69 |oCstr((v|oid *)fi|
|000005f0| 6c 65 4e 61 6d 65 29 3b | 0d 7d 0d 00 00 00 00 00 |leName);|.}......|
|00000600| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000610| 0d 09 2a 2a 20 63 72 65 | 61 74 65 20 43 72 69 63 |..** cre|ate Cric|
|00000620| 6b 65 74 20 64 61 74 61 | 20 66 69 6c 65 20 2a 2a |ket data| file **|
|00000630| 0d 53 65 74 46 69 6c 65 | 49 6e 66 6f 2e 63 02 00 |.SetFile|Info.c..|
|00000640| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00000650| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 a7 e5 d5 cb 00 00 | 00 00 00 00 01 7e 61 74 |........|.....~at|
|00000680| 69 6f 6e 2e 64 61 74 61 | 22 2c 27 54 45 58 54 27 |ion.data|",'TEXT'|
|00000690| 2c 27 43 47 52 46 27 29 | 3b 0d 09 66 70 72 69 6e |,'CGRF')|;..fprin|
|000006a0| 74 66 28 6d 79 66 69 6c | 65 2c 22 2a 5c 6e 22 29 |tf(myfil|e,"*\n")|
|000006b0| 3b 0d 09 66 70 72 69 6e | 74 66 28 6d 79 66 69 6c |;..fprin|tf(myfil|
|000006c0| 65 2c 22 78 5c 74 79 5c | 6e 22 29 3b 0d 09 66 6f |e,"x\ty\|n");..fo|
|000006d0| 72 28 69 3d 30 3b 69 3c | 6e 3b 69 2b 2b 29 66 70 |r(i=0;i<|n;i++)fp|
|000006e0| 72 69 6e 74 66 28 6d 79 | 66 69 6c 65 2c 22 25 39 |rintf(my|file,"%9|
|000006f0| 67 5c 74 25 39 67 5c 6e | 22 2c 78 5b 69 5d 2c 79 |g\t%9g\n|",x[i],y|
|00000700| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 87 00 09 |...H..Mo|naco....|
|00000710| 00 87 02 2e 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 06 | 00 04 00 d3 00 6c 01 98 |........|.....l..|
|00000730| 02 a9 00 d3 00 6c 01 98 | 02 a9 a3 3a fc 0f 00 00 |.....l..|...:....|
|00000740| 00 fe 00 00 01 4a 00 00 | 00 03 01 00 00 00 01 00 |.....J..|........|
|00000750| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 5d 6f 30 |...L...L|...2.]o0|
|00000760| 0a a8 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000770| 00 0a 03 ed ff ff 00 00 | 00 00 00 5f 16 20 00 00 |........|..._. ..|
+--------+-------------------------+-------------------------+--------+--------+